package com.thz.houserental.infrastructure.web.dto;

import com.thz.houserental.infrastructure.auth.PasswordMatches;
import com.thz.houserental.infrastructure.auth.ValidEmail;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@PasswordMatches
public class RegisterDto {
    @NotEmpty
    @Schema(description = "昵称")
    private String nickName;

    @NotEmpty
    @Schema(description = "密码")
    private String password;
    
    @Schema(description = "匹配密码")
    private String matchingPassword;

    @NotEmpty
    @ValidEmail
    @Schema(description = "邮箱")
    private String email;
    
    @Schema(description = "微信id")
    private String wechatId;
}
